<h1 class="page-header">Game Manage</h1>
<h3 class="sub-header">
    <a href="{:U('EditGame/index')}">Add Game</a>
</h3>
<div class="table-responsive">
    <table class="table table-striped">
        <thead>
        <tr>
            <th>id</th>
            <th>title</th>
            <th>flash_id</th>
            <th>pid</th>
            <th>#</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.title}</td>
                <td>{$vo.flash}</td>
                <td>{$vo.pid}</td>
                <td><a href="{:U('game', array('id'=> $vo['id']))}">Delete</a></A></td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<script>
    $(".nav-sidebar li").removeClass("active");
    $(".nav-sidebar #game").addClass("active");
    $("#content td a").click(function(){
        var n = confirm("确定删除？","确定","取消");
        if (!n) return false;
        $.ajax({
            url: $(this).attr('href'),
            dataType: "html",
            type: "POST",
            success: function(html){
                $("#content").html(html);
                return false;
            }
        });
        return false;
    });
</script>